package com.pojo;


import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/*@Component
@ConfigurationProperties(prefix = "user")*/
@TableName("user")
public class User implements Serializable {
    @ExcelProperty("账号")
    @TableId(value = "id",type= IdType.AUTO)
    private int id;
    @ExcelProperty("姓名")
    @TableField("name")
    private String name;
    @ExcelProperty("密码")
    @TableField("password")
    private String password;
    @ExcelProperty("性别")
    @TableField("sex")
    private String sex;
    @ExcelProperty("年龄")
    @TableField("age")
    private int age;
    @ExcelProperty("邮箱")
    @TableField("email")
    private String email;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
